import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from 'uview-ui'
import axios from 'axios'
import moment from 'moment'
import WebsocketTask from "@/common/socket.js"
Vue.use(uView)
Vue.config.$axios = axios
Vue.config.productionTip = false
Vue.prototype.$imgUrl = 'http://www.hkeh.cc'
Vue.prototype.$websocket = new WebsocketTask('wss://www.hkeh.cc/wss', 3000)
Vue.prototype.$moment = moment
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif